﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["admin"] != null)
        {
            Admins ad = (Admins)Session["admin"];
            lblAdmin.Text = ad.Username;
            lblLogout.Visible = true;
        }
        else
        {
            lblAdmin.Text = "";
            lblLogout.Visible = false;
        }
    }
}
